import { createRouter, createWebHistory } from 'vue-router';
// 导入你的组件
import UploadView from '@/views/UploadView.vue';
import LoginView from '@/views/LoginView.vue';
import GeneralView from '@/views/GeneralView.vue'
import DataAnalysisView from '@/views/DataAnalysisView.vue'
import DataComparisonView from '@/views/DataComparisonView.vue'
import DataVisualizationView from '@/views/DataVisualizationView.vue'


const routes = [
  {
    path: '/upload-page',
    name: 'UploadView',
    component: UploadView
  },
  {
    path: '/login-page',
    name: 'LoginView',
    component: LoginView,

  },
  {
    path: '/',
    name: 'LoginView',
    component: LoginView
  },
  {
    path: '/general-page',
    name: 'GeneralView',
    component: GeneralView
  },
  {
    path: '/comparison',
    name: 'comparison',
    component: DataComparisonView
  },
  {
    path: '/analysis',
    name: 'analysis',
    component: DataAnalysisView
  },
  { name: 'visualization',
    path: '/visualization',
    component: DataVisualizationView
  },


];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;